home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / lmremutl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  3.0 KB  |  140 lines

  1. /*++ BUILD Version: 0001    // Increment this if a change has global effects
  2.  
  3. Copyright (c) 1991-1996  Microsoft Corporation
  4.  
  5. Module Name:
  6.  
  7.     lmremutl.h
  8.  
  9. Abstract:
  10.  
  11.     This file contains structures, function prototypes, and definitions
  12.     for the NetRemote API.
  13.  
  14. Environment:
  15.  
  16.     User Mode - Win32
  17.     Portable to any flat, 32-bit environment.  (Uses Win32 typedefs.)
  18.     Requires ANSI C extensions: slash-slash comments, long external names.
  19.  
  20. --*/
  21.  
  22. /*
  23.  *      C/C++ Run Time Library - Version 9.0
  24.  *
  25.  *      Copyright (c) 1997, 1998 by Borland International
  26.  *      All Rights Reserved.
  27.  *
  28.  */
  29.  
  30. #ifndef _LMREMUTL_
  31. #define _LMREMUTL_
  32. #pragma option push -b
  33.  
  34.  
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif
  38.  
  39.  
  40. //
  41. // Type Definitions
  42. //
  43.  
  44. #ifndef DESC_CHAR_UNICODE
  45.  
  46. typedef CHAR DESC_CHAR;
  47.  
  48. #else // DESC_CHAR_UNICODE is defined
  49.  
  50. typedef WCHAR DESC_CHAR;
  51.  
  52. #endif // DESC_CHAR_UNICODE is defined
  53.  
  54.  
  55. typedef DESC_CHAR * LPDESC;
  56.  
  57.  
  58. //
  59. // Function Prototypes
  60. //
  61.  
  62. NET_API_STATUS NET_API_FUNCTION
  63. NetRemoteTOD (
  64.     IN LPCWSTR UncServerName,
  65.     OUT LPBYTE *BufferPtr
  66.     );
  67.  
  68. NET_API_STATUS NET_API_FUNCTION
  69. NetRemoteComputerSupports(
  70.     IN LPCWSTR UncServerName OPTIONAL,   // Must start with "\\".
  71.     IN DWORD OptionsWanted,             // Set SUPPORTS_ bits wanted.
  72.     OUT LPDWORD OptionsSupported        // Supported features, masked.
  73.     );
  74.  
  75. NET_API_STATUS
  76. RxRemoteApi(
  77.     IN DWORD ApiNumber,
  78.     IN LPCWSTR UncServerName,                    // Required, with \\name.
  79.     IN LPDESC ParmDescString,
  80.     IN LPDESC DataDesc16 OPTIONAL,
  81.     IN LPDESC DataDesc32 OPTIONAL,
  82.     IN LPDESC DataDescSmb OPTIONAL,
  83.     IN LPDESC AuxDesc16 OPTIONAL,
  84.     IN LPDESC AuxDesc32 OPTIONAL,
  85.     IN LPDESC AuxDescSmb OPTIONAL,
  86.     IN DWORD  Flags,
  87.     ...                                         // rest of API's arguments
  88.     );
  89.  
  90.  
  91.  
  92. //
  93. //  Data Structures
  94. //
  95.  
  96. typedef struct _TIME_OF_DAY_INFO {
  97.     DWORD      tod_elapsedt;
  98.     DWORD      tod_msecs;
  99.     DWORD      tod_hours;
  100.     DWORD      tod_mins;
  101.     DWORD      tod_secs;
  102.     DWORD      tod_hunds;
  103.     LONG       tod_timezone;
  104.     DWORD      tod_tinterval;
  105.     DWORD      tod_day;
  106.     DWORD      tod_month;
  107.     DWORD      tod_year;
  108.     DWORD      tod_weekday;
  109. } TIME_OF_DAY_INFO, *PTIME_OF_DAY_INFO, *LPTIME_OF_DAY_INFO;
  110.  
  111. //
  112. // Special Values and Constants
  113. //
  114.  
  115. //
  116. // Mask bits for use with NetRemoteComputerSupports:
  117. //
  118.  
  119. #define SUPPORTS_REMOTE_ADMIN_PROTOCOL  0x00000002L
  120. #define SUPPORTS_RPC                    0x00000004L
  121. #define SUPPORTS_SAM_PROTOCOL           0x00000008L
  122. #define SUPPORTS_UNICODE                0x00000010L
  123. #define SUPPORTS_LOCAL                  0x00000020L
  124. #define SUPPORTS_ANY                    0xFFFFFFFFL
  125.  
  126. //
  127. // Flag bits for RxRemoteApi:
  128. //
  129.  
  130. #define NO_PERMISSION_REQUIRED  0x00000001      // set if use NULL session
  131. #define ALLOCATE_RESPONSE       0x00000002      // set if RxRemoteApi allocates response buffer
  132. #define USE_SPECIFIC_TRANSPORT  0x80000000
  133.  
  134. #ifdef __cplusplus
  135. }
  136. #endif
  137.  
  138. #pragma option pop
  139. #endif //_LMREMUTL_
  140.